Repository navigation
ci(filter-parity): judge every ui test read outside ui/, pin the ui scheduling, and admit every out-of-tree markdown read - #38286
objectstack-fleet[bot] wants to merge 9 commits into
Conversation
Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
…the ui scheduling Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
… ui scheduling pin Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 48bd006 · 2026-11-28T11:45Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: First record on this PR. Read: cards #38132, #38133 and #38134 with every comment (triage, claim, and the dev report on #38132), PR #38286 body, file list and its one comment (the review claim), the net diff of the head against merge base Result in one line: #38132 and #38134 are implemented as their cards ask, with the gaps graded below; #38133 is not true on this head, because one ui test read outside ① Derived judgments
② Semver levelClause-②: no. A workflow file, two root ③ Boundary flags
④ Design judgment
M1 (must-fix) — a ui test reads a file outside S4 (should-fix) — the stated bound (a read inside a module the test imports is not seen) has live, unnamed instances.
S1 (should-fix) — dropping the status-function clause is judged a widening, and it is a narrowing. S2 (should-fix) — the pin does not ratchet. A row added above the heading, or a disjunct added to a condition, is free and unpinned; removing it later is an edit that makes a ui job skip where it ran before, and the gate stays green. Wider conditions are at least reported in the OK line; wider rows are reported nowhere. Card #38132 asks that any such edit turn the gate red and that the step's whole input be pinned. Holding the rows above the heading exactly, as
S3 (should-fix) — the widening turns the existence of documents outside Nits, no effect on correctness or the contract:
Implemented-by: VERDICT: FAIL |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK at head Review summaryThe three new ui read rows and the trade-off line hold, the Owed before landing:
With the same push (nits N1 to N4):
The dev's note on root pending changesets goes to the seat for a follow-up card. Next: the fix earns a delta contract review and a delta L1. After that it goes to seat 1 (Tier H, ci.yml). |
…he ui pin M1: the fifth subject reads a one-piece relative literal that climbs out of ui/ (the `new URL(literal, import.meta.url)` import of the platform zh-CN forms pack), and the ui selector puts such a reader in the always-on lane. S4: a loaded module's first-party imports are reads of the test (closure). S1: a condition naming no status function carries the implicit success(). S2: the pinned rows and every ui job condition are held exactly. S3: an out-of-tree markdown document is a ledger candidate only when the root `ui:` filter covers it; the root-noise notRead entries are gone. N1-N3: monorepoRoot default, the on: bound, multi-line trade-off reasons. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 807ec4f · 2026-11-28T12:55Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta record. It follows record 7238884860 (at M1: closed S1: closed S2: closed S3: closed S4: closed ① Derived judgments
② Semver levelClause-②: no. Unchanged: a workflow file, root ③ Boundary flags
④ Design judgment
S5 (should-fix) — the closure follows only JavaScript modules, and the header says otherwise. Subject six and
Nits, no effect on correctness or the contract:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK (delta) at head Review summaryM1 and S1 to S4 are closed:
The delta record re-ran its literal scan: all 11 paths are covered. Both remerge diffs are empty. The N4 deferral to a follow-up card is acceptable, since an exact pin closes the risk it named. Delta contract record 7239624342 is PASS at this head with its tier verified, and it opens one new graded item. Owed before landing: S5 of 7239624342, the import closure stops at
With the same push (nits):
Gates. At this head the check-runs read 27 success, 13 skipped, 0 failed and 13 in progress, including the lane that runs this gate. Next: the fix earns a delta contract review and a delta L1. After that it goes to seat 1 (Tier H, ci.yml). |
…sumers too S5: the fifth subject's module closure resolves a `.js` specifier to its `.ts` source, skips type-only imports, walks only modules a test loads, and lets a traded-off module's imports inherit its trade-off. N5: the ledger admits out-of-tree markdown under `ui:` or `ui_consumers:`, with the monorepo root as a fallback base only. N6: the self-test reads the reads group from the `filters:` string. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Second delta record. It follows record 7239624342 (at S5: closed ① Derived judgments
② Semver levelClause-②: no. Unchanged: a workflow comment, a root ③ Boundary flags
④ Design judgment
Nits, no effect on correctness or the contract:
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
Requested by Elon · project thread
Fixes #38132
Fixes #38133
Fixes #38134
Clause-②: no
Metadata-protocol: none
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
维护者速读
What changes
check:ci-filter-paritycovers every file outsideui/that a ui test reads, not only the rootdocs/adr.scanPathExpressions). Imports resolve throughcheck-cross-package-test-inputs's ownresolveImportTarget, which is exported with arootparameter and has no behaviour change.ui/and names a file is a read. This covers theawait import(new URL('../…', import.meta.url).href)spelling the walker does not read. That is howmetadata-form-option-names.test.tsloadspackages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts, which now has aui:row.firstPartyModuleClosure, attributed asTEST (via MODULE). This brings inscripts/invoked-as.mjs, whichscripts/ci-shard-matrix.mjsimports, and it gets a row.import()s inside a loaded module are not followed.import(),scripts/check-cross-package-test-inputs.mjs, is a row above the heading, held by the pin..jsspecifier names its.tssource, an extensionless one gains the TS extensions or/index.ts, and a type-onlyimport type/export typeis not followed. Only a module the test loads is walked; a file a test reads as text (readFileSync) is a read, and what it imports is not. The third subject'sfirstPartyModuleClosure, which stages runnable copies, is unchanged.--listreports it as a trade-off.packages/mcp/src/skill-md.tsloads./ask-skill.generated.js, which is a.tson disk, and themcp-http-tools.tsclosure. Those 9 modules are now listed under the mcp trade-off, and the ci.yml trade-off comment names them. A module that a test also loads directly still needs its own row.ui/. 15 are covered byuiorui_consumers. The other 10 arepackages/mcp/src/skill-md.ts, the declared trade-off, and the 9 modules that inherit it.ui:list, under aUI TEST READS OUTSIDE ui/heading. The gate holds that group to the reads in both directions.ui/scripts/select-affected-tests.mjs) treats anew URL(literal, import.meta.url)that leaves the tree as a disk read. The test goes to the always-on lane, as M1 asked to verify.--explainon a probe diff that touches only the platform pack: the always-on count goes from 525 to 526, and the one addition ismetadata-form-option-names.test.ts.scripts/ci-filter-parity.ui-pin.json. Every part is held EXACTLY, as a ratchet (rework S2):with:keys;filteroutputs the ui jobs read;ui(above the reads group) and ofui_consumers. A row gone reds as missing, and a row added reds as unpinned until the pin names it, so its later removal is caught;if:of every job that reads a ui output, 9 jobs, compared in CNF:success()clause. Dropping!cancelled()oralways()is therefore a narrowing.if:is changed.on:paths,paths-ignoreandbranchesfilters as not judged.deriveCandidates()inui/scripts/markdown-test-inputs.mjsadmits markdown read outsideui/, not onlycontent/docs.ci.ymlui:filter covers it, so any change to it starts the job that runs this ledger's test. A rootREADME.mdorCHANGELOG.mdthat a test only names can no longer red the next ui PR.notReadentries from round 1 (58 of them, plus two entries that existed only for them) are gone.../entry in the ledger to aui:row.CONTRIBUTING.mdread and the../skills/objectui/**reads.monorepoRootdefault is nowpath.dirname(root).ui:andui_consumers:, so a markdown read under aui_consumerssubtree reaches the ledger.ui/means that document, not a same-named one at the root.check-doc-links.test.tsis recorded asnotRead.filters:string, as the gate does.Tests
node scripts/check-ci-filter-parity.mjs --self-test: 232 assertions. Battery (12) has 48 cases and (13) has 43, at those floors..tsmodule's./dep.jsimport walked to its.tssource, with the type-only import skipped;ask-skill.generated.tsinheriting the mcp trade-off;cmp. Every one turns the self-test red:.js/.mjsonly: 3 assertions;new URLimport read with its module's import attributed through it;invoked-as.mjsread on the real tree;success()clause, with!cancelled()andalways()dropped, an absentif:, andalways()rewritten to!cancelled();!cancelled()dropped from the realtest-ui-planjob reds it.cmp. Every one turns the self-test red:success()limited to an absentif:: 4;uivitest,markdown-test-inputs.test.ts,select-affected-tests.test.tsandcheck-pending-changeset-literals.test.ts: 3 files, 110 of 110 pass.ui:alone and dropping the fallback base reds 2 tests. The S3/N5 scratch case reds on itsui_consumersdocument, and the ledger audit reds on the rootpackages/core/README.mdnoise.new URLrule removed, redsmakes the closure unbounded.Acceptance notes
GOVERNED_SURFACESredscheck:pm-governed-mergesandcheck:pm-governed-prose. Those gates require the governed-surface lists inAGENTS.mdand.claude/skills/pm-dispatch/SKILL.mdto name it, which makes this a fleet-rule change (Rule-change: yes). It is left for the seat to route.ui/scripts/check-pending-changeset-literals.mjsmatches only theui/.changeset/prefix. It goes to the seat as a follow-up card and is not filed here.Verification
Run
node scripts/check-ci-filter-parity.mjs --list. Expect each of the 25 reads outsideui/printedok(the mcp ones astrade-off), thenok the paths-filter input, the ui outputs, the pinned rows and every ui job condition hold.Read first, by risk:
scripts/check-ci-filter-parity.mjs,conditionClauses(the implicitsuccess()clause) andjudgeUiScheduling(the exact ratchet).scripts/check-ci-filter-parity.mjs,uiRootReadsOf/moduleReadClosure/inheritedTradeOff(escaping literals, the TypeScript-aware closure and trade-off inheritance).ui/scripts/markdown-test-inputs.mjs, theui:/ui_consumers:admission and the fallback base inderiveCandidates().Local gates, at head 230afe6
dispatch-gates --commands --repo objectstack-ai/objectstack, which derived 75 families from the tree at230afe66db, after merging origin/main because the first derivation reported a stale tree. The--ranreconciliation shows 75 derived, 75 run and 0 unrun.check:ci-filter-parity(both legs, 232 assertions; the gate reports 25 reads covered or traded off and the pin held exactly),check:cross-package-test-inputs,check:pm-dispatch-gates,check:nul-bytesandcheck:required-contexts.check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closureandcheck:sourcemap-no-sources-content. Reason: each exits 3 with PREREQUISITE NOT MET because this worktree has no builtdist/. The diff touches no package, and Build Core runs all four in CI.uivitest run scripts/on the shared box: 150 files pass and 22 fail, the same 22 files as last round. All need build output this worktree lacks:@objectstack/specsubpaths or built ui packages.overlap-check --branch=HEAD --base=origin/main: VERDICT clean, exit 0. The branch also merges cleanly with ci(required-contexts): register Temporal Conformance (live PG + MySQL) as a required context again #38331, which shares ci.yml.Generated by Claude Code